Learn R Programming

cauchypca (version 1.3)

MLE of the Cauchy distribution: MLE of the Cauchy distribution

Description

MLE of the Cauchy distribution.

Usage

cauchy.mle(x, tol = 1e-07)

Value

A list including:

iters

The number of iterations required for the Newton-Raphson to converge.

loglik

The value of the maximised log-likelihood.

param

The vector of the parameters.

Arguments

x

A numerical vector with data.

tol

The tolerance level up to which the maximisation stops set to 1e-09 by default.

Author

Michail Tsagris

R implementation and documentation: Michail Tsagris <mtsagris@uoc.gr>.

Details

Instead of maximising the log-likelihood via a numerical optimiser we have used a Newton-Raphson algorithm which is faster. The Cauchy is the t distribution with 1 degree of freedom.

References

Johnson, Norman L. Kemp, Adrianne W. Kotz, Samuel (2005). Univariate Discrete Distributions (third edition). Hoboken, NJ: Wiley-Interscience.

https://en.wikipedia.org/wiki/Wigner_semicircle_distribution

See Also

cauchy.pca

Examples

Run this code
x <- rcauchy(1000)
a <- cauchy.mle(x)

Run the code above in your browser using DataLab